package com.bx.implatform.kafka.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "自定义发布变动通知对象")
public class PublishApproveChange {

    @Schema(description = " 审批id ")
    private String id;

    @Schema(description = " 审批号")
    private String code;

    @Schema(description = " 审批状态：0:待审批，1：已审批，2：驳回，3：审核通过，4：审核驳回，5:撤销")
    private Integer status;

    @Schema(description = "上报时间 ")
    private String reportTime;

    @Schema(description = "审核时间")
    private String examineTime;

    @Schema(description = " 审批时间")
    private String approveTime;

    @Schema(description = "申请人")
    private String createPerson;

    @Schema(description = "申请人用户名")
    private String createPersonName;

    @Schema(description = "审核人")
    private String examinePerson;

    @Schema(description = "审核人用户名")
    private String examinePersonName;

    @Schema(description = "审批人")
    private String approvePerson;

    @Schema(description = "审批人用户名")
    private String approvePersonName;

    @Schema(description = "审核意见")
    private String examineOpinion;

    @Schema(description = "审批意见")
    private String approveOpinion;

    @Schema(description = "发布内容")
    private String content;

    @Schema(description = "发布附件")
    private String attachment;

    private List<DSendTarget> sendTarget;

    @Data
    static class DSendTarget {

        /**
         * 渠道名称
         */
        private String chanenelName;

        /**
         * 选择人员
         */
        private List<String> checkedUser;
    }
}
